set timeout 20
set password1 "nmamtf123"
set password2 "firefly"
spawn sudo scp riffa.ko firefly@192.168.31.211:/home/firefly/
expect {
    "*password for *" {send "$password1\r";exp_continue}
    "firefly*:" {send "$password2\r";}
}
interact
